package com.dynabook.ems.model.vo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 工单BOM详情查询响应VO
 */
@Data
@ApiModel(value = "工单BOM详情信息", description = "工单下的BOM完整详情信息")
public class WorkOrderBomDetailVO {
    
    @ApiModelProperty(value = "工单号")
    private String workOrderNumber;
    
    
    @ApiModelProperty(value = "成品型号")
    private String productName;
    
    @ApiModelProperty(value = "成品名称")
    private String finishProductName;
    
    @ApiModelProperty(value = "机型名称")
    private String machineName;

    @ApiModelProperty(value = "版本")
    private String version;
    
    @ApiModelProperty(value = "是否可编辑")
    private Boolean canEdit;

    @ApiModelProperty(value = "生产数量")
    private Integer productionQuantity;
    
    @ApiModelProperty(value = "BOM详情分页列表")
    private Page<WorkOrderBomDetailItem> bomDetails;

    /**
     * 工单BOM详情项
     */
    @Data
    @ApiModel(value = "工单BOM详情项", description = "工单BOM中的具体零部件信息")
    public static class WorkOrderBomDetailItem {
        
        @ApiModelProperty(value = "详情ID")
        private String id;
        
        @ApiModelProperty(value = "样品型号")
        private String modelType;
        
        @ApiModelProperty(value = "样品名称")
        private String modelName;

        @ApiModelProperty(value = "样品数量")
        private Integer modelNumber;



        @ApiModelProperty(value = "样品单位")
        private String modelUnit;
        
        @ApiModelProperty(value = "类型")
        private String modelCategory;

           
        @ApiModelProperty(value = "样品细分")
        private String category;
        
        @ApiModelProperty(value = "样品编号")
        private String fixedNo;

        
        @ApiModelProperty(value = "总数量")
        private Integer totalNum;
        
        @ApiModelProperty(value = "备注")
        private String remark;
        

    }
}